require_relative 'pdu'

module SmppClient

  module Pdu

    # The purpose of the SMPP unbind operation is to deregister an instance of an ESME from the
    # SMSC and inform the SMSC that the ESME no longer wishes to use this network connection
    # for the submission or delivery of messages.
    # Thus, the unbind operation may be viewed as a form of SMSC logoff request to close the
    # current SMPP session.

    class Unbind < Pdu

      def initialize(byte_buffer = nil)
        if byte_buffer == nil
          super(CommandId::UNBIND)
        else
          super(byte_buffer)
        end
      end

    end

  end

end